<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>查询结果</title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css">
    <script language="javascript" src="../../js/clientSideApp.js"></script>
    <script language="JavaScript" type="text/javascript" src="../../js/win_center.js"></script>
    <SCRIPT language=JavaScript type=text/JavaScript>
        function windowOpen(theURL, winName, features, width, hight, scrollbars, top, left) {
            var parameter = "top=" + top + ",left=" + left + ",width=" + width + ",height=" + hight;
            if (scrollbars == "no") {
                parameter += ",scrollbars=no";
            } else {
                parameter += ",scrollbars=yes";
            }
            window.open(theURL, winName, parameter);
        }
    </SCRIPT>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="25" align="center" valign="bottom" class="td06">
                <table width="98%" border="0" cellspacing="3" cellpadding="0">
                    <tr>
                        <td width="15"><img src="../../images/index_32.gif" width="9" height="9"></td>
                        <td valign="bottom" class="title">调价单查询</td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br>

    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td class="td_page">
                药品编号： <input name="textfield2" type="text" class="input" size="20" id="drid">　
                           <input name="Submit" type="button" class="buttonface" value=" 查询 " id="stu">
            </td>
        </tr>
    </table>

    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">

    </table>
    <br>
    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="table01">


    </table>
    <table width="95%" border="0" cellpadding="0" cellspacing="0" class="table02" align="center">
        <tr>
            <td height="30" align="right"><img src="../../images/1.gif" width="4" height="5" align="absmiddle"> 首页　 <img
                    src="../../images/2.gif" width="3" height="5" align="absmiddle"> 上一页　 <img
                    src="../../images/2-2.gif" width="3" height="5" align="absmiddle"> 下一页　 <img
                    src="../../images/3.gif" width="4" height="5" align="absmiddle"> 末页　　共 1 页 1 条记录
            </td>
        </tr>
    </table>
</form>
</body>

</html>
<script src="../../bootstrap-3.3.7-dist/js/jquery-3.4.1.min.js"></script>
<script>

    $("#stu").on("click",function () {
        $.ajax({
            url:"/feign/modprices/select",
            type:"get",
            data:{
                drugid:$("#drid").val(),
            },
            dataType:"json",
            headers: {
                Accept: "application/json; charset=utf-8",
                Authorization: location.href.split("=")[1]
            },
            success:function (data) {
                var  html="       <tr>\n" +
                    "\n" +
                    "            <td class=\"td_form01\">操作人</td>\n" +
                    "            <td class=\"td_form01\">原单价</td>\n" +
                    "            <td class=\"td_form01\">调价价格</td>\n" +
                    "            <td class=\"td_form01\">调价日期</td>\n" +
                    "        </tr>"
                for (var i = 0; i < data.length; i++) {
                    html += '<tr>' +
                        "<td class=\"td_01\">" + data[i].staffinfo.staname + "</td>" +
                        "<td class=\"td_01\">" + data[i].modprice.modoripri + "</td>" +
                        "<td class=\"td_01\">" + data[i].modprice.modpri + "</td>" +
                        "<td class=\"td_01\">" + data[i].modprice.moddate + "</td>" +
                        // "<td class=\"td_01\">" + data.data[i].modprice.staaddress + "</td>" +
                        // "<td class=\"td_01\">" + data.data[i].modprice.statel + "</td>" +
                        +'</tr>'
                }

                $(".table01").html(html);
            }
        })
    })

</script>
